#!/usr/bin/python

# wx_gui.py

import sys
import os

from doctest_tools import setpath

setpath.setpath(__file__, remove_first = True)

from naimath.gui import gui

def usage():
    sys.stderr.write("usage: wx_gui.py rule_base [canned_questions]\n")
    sys.exit(2)

if __name__ == "__main__":
    #print "sys.argv", sys.argv
    if not 2 <= len(sys.argv) <= 3: usage()
    os.chdir(os.path.dirname(gui.__file__))
    gui.run(*sys.argv[1:])
